package com.archie.xunji.map.entity;

import org.json.JSONObject;

/**
 * Created by Administrator on 2015/11/11.
 */
public final class KindResultEntity {


    /**
     * style : 2
     * count : 260
     * name : 传说
     * state : true
     */

    private int style;
    private int count;
    private String name;
    private boolean state;

    public void setStyle(int style) {
        this.style = style;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setState(boolean state) {
        this.state = state;
    }

    public int getStyle() {
        return style;
    }

    public int getCount() {
        return count;
    }

    public String getName() {
        return name;
    }

    public boolean isState() {
        return state;
    }

    @Override
    public String toString() {
        return "KindResultEntity{" +
                "style=" + style +
                ", count=" + count +
                ", name='" + name + '\'' +
                ", state=" + state +
                '}';
    }

    public void parseEntity(JSONObject jsonObject){
        style = jsonObject.optInt("style");
        count = jsonObject.optInt("count");
        name = jsonObject.optString("name");
        state = jsonObject.optBoolean("state");
    }
}
